This function reads attributes from the grid.
Result = EOS_GD_READATTR(gridID, attrname, datbuf)
Returns SUCCEED(0) if successful and FAIL(–1) otherwise.
Grid id (long) returned by EOS_GD_CREATE or EOS_GD_ATTACH.
Attribute name (string).
A named variable that will contain the attribute values.
None
In this example, we read a single precision (32 bit) floating point attribute with the name “ScalarFloat”:
status = EOS_GD_READATTR(gridID, "ScalarFloat", f32)
5.2 |
Introduced |